//
//  MyOpreOperationCell.m
//  ForestPack
//
//  Created by 郑洲 on 2018/7/4.
//  Copyright © 2018年 郑洲. All rights reserved.
//

#import "MyOperationCell.h"

@interface MyOperationCell ()

@property (nonatomic, strong) UILabel *needLabel;
@property (nonatomic, strong) UILabel *statuLabel;
@property (nonatomic, strong) UILabel *timeLabel;

@end

@implementation MyOperationCell

+ (MyOperationCell *)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath{
    static NSString *cellID = @"MyOperationCell";
    MyOperationCell *cell = [tableView dequeueReusableCellWithIdentifier:cellID];
    if (cell == nil) {
        cell = [[MyOperationCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellID];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        cell.backgroundColor = [UIColor whiteColor];
        [cell createSubView];
    }
    
    return cell;
}

- (void)createSubView {
    self.needLabel = [[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(13), ScreenX375(13), ScreenX375(120), ScreenX375(17))];
    self.needLabel.textColor = REXADECIMALCOLOR(@"#333333");
    self.needLabel.font = Kfont(14);
    self.needLabel.text = @"我需要包装设计";
    [self addSubview:self.needLabel];
    
    self.statuLabel = [[UILabel alloc] initWithFrame:CGRectMake(ScreenX375(13), ScreenX375(35), ScreenX375(120), ScreenX375(18))];
    self.statuLabel.textColor = ThemeColor;
    self.statuLabel.font = Kfont(12);
    self.statuLabel.text = @"订单提交成功";
    [self addSubview:self.statuLabel];
    
    self.timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - ScreenX375(143), ScreenX375(14), ScreenX375(130), ScreenX375(14))];
    self.timeLabel.textColor = REXADECIMALCOLOR(@"#999999");
    self.timeLabel.font = Kfont(12);
    self.timeLabel.textAlignment = NSTextAlignmentRight;
    self.timeLabel.text = @"2018-05-25  15:40:50";
    [self addSubview:self.timeLabel];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
